﻿@model AMAP.Areas.Public.Models.Authentication.PublicAuthenticationLoginViewModel
@{
    ViewBag.Title = "Connexion";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Connexion</h2>
@section Javascript {
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
}

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Saisie de vos identifiants personnels</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Password)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Password)
            @Html.ValidationMessageFor(model => model.Password)
        </div>
        <div class="editor-field">
            @Html.CheckBoxFor(model => model.RememberMe)
            @Html.LabelFor(model => model.RememberMe)
        </div>
        @if (!string.IsNullOrEmpty(Model.ErrorMessage))
        {
            <div class="editor-field field-validation-error">
                @Html.LabelFor(model => model.Email, Model.ErrorMessage)
            </div>
        }
        <p>
            <input type="submit" value="Connexion" />
        </p>
    </fieldset>
}
